//取值
parse=function (obj){
    return JSON.parse(localStorage.getItem(obj));
}
var s=parse("s");
var $ = layui.jquery;
alert(s)
$.ajax({
    url:'/SyOperationController/SyCourseReviewXiangqing',
    type:'post',
    data:{"s":s},
    success:function(data){
        $("#input_id").val(data.data.courseName);
        selOperationlog("查询详情")
    }
})
$("#Cancel_id").on('click',function(){
    var layer_1=parent.layer;
    layer_1.close(layer_1.index);
})
$("#Confirm_id").on('click',function(){
    var str=document.getElementById("input_id").value;
    var c=getRadio();
    var str2=document.getElementById("input_id2").value;
    var id=parse("s");
    f(id,str2,c);
    var layer_1=parent.layer;
    layer_1.close(layer_1.index);
    $.ajax({
        url:'/SyOperationController/SyProductNameUpd',
        type:'post',
        data:{"id":id,"str":str,"c":c},
        success:function(data){
        }
    })
})
function  f(id,str2,c) {
    $.ajax({
        url:'/SyOperationController/SyCourseReview',
        type:'post',
        data:{"id":id,"str2":str2,"c":c},
        success:function(data){
            selOperationlog("昨日总金额")
        }
    })
}
function getRadio(){
    var value="";
    var radio=document.getElementsByName("radio_id2");
    for(var i=0;i<radio.length;i++){
        if(radio[i].checked==true){
            value=radio[i].value;
            break;
        }
    }
    return value;
}